package com.myfactoryAbstract;

public class ZMainTest {

	public static void main(String[] args) {
		Factory huaweiFacotry = new HuaweiFactory();
		Phone hwphone = huaweiFacotry.getPhone();
		hwphone.getPhone();
		huaweiFacotry.getTablet().getTablet();
		
		Factory appleFactory = new AppleFactory();
		Phone applephone = appleFactory.getPhone();
		applephone.getPhone();
		appleFactory.getTablet().getTablet();
	}
}
